<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .father{
            display: flex;
            overflow: hidden;
            width: 1366px;
            height: 600px;
            margin: 0 auto;
            background-image: url(./images/bg.jpg);

        }
        .father .left,.father .right{
            width: 50%;
            height: 600px;
            transition: all 1s;

            background-image: url(./images/fm.jpg);
            background-size: cover;
        }
        
        .father .right{
            background-position: right 0;

        }
        .father:hover .left{
            transform: translateX(-100%);
        }
        .father:hover .right{
            transform: translateX(100%);
        }


    </style>
</head>
<body>
    <div class="father">
        <div class="left"></div>
        <div class="right"></div>
    </div>
</body>
</html>